package com.pounds.service.impl;

import com.pounds.mapper.WaresMapper;
import com.pounds.pojo.Ware;
import com.pounds.service.WaresService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WaresServiceImpl implements WaresService {

    @Autowired
    private WaresMapper waresMapper;

    @Override
    public List<Ware> getAllWare() {
        return waresMapper.findAllWare();
    }

    @Override
    public void newSaleWare(String name,int num) {
        waresMapper.newSaleWare(name,num);
    }
}
